﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master/Main.Master" AutoEventWireup="true" CodeBehind="CategoryList.aspx.cs" Inherits="CH.FourBoards.LagerWalti.WebFrontEnd.View.CategoryList" %>

<asp:Content runat="server" ContentPlaceHolderID="MainContent">

    <div class="container">
        <h1 class="page-header">Categories</h1>

        <div class="table-responsive">

            <table class="table table-hover record-list" data-recordset="CategoryCount">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>Parent</th>
                        <th></th>
                        <th>Name</th>
                        <th>Products</th>
                    </tr>
                </thead>
                <tbody>
                    <asp:Repeater runat="server" ID="RecordSetRepeater">
                        <ItemTemplate>
                            <tr data-record-url="<%# DataBinder.Eval(Container.DataItem, "RecordUrl") %>">
                                <td><%# DataBinder.Eval(Container.DataItem, "Id") %></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "Parent") %></td>
                                <td>
                                    <img src="/<%# DataBinder.Eval(Container.DataItem, "Image") %>" /></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "Name") %></td>
                                <td><%# DataBinder.Eval(Container.DataItem, "ProductCount") %></td>
                            </tr>
                        </ItemTemplate>

                    </asp:Repeater>
                </tbody>
            </table>
        </div>
    </div>

</asp:Content>
